package com.herui.ota;

import org.mybatis.spring.annotation.MapperScan;
import org.shan.security.app.EnableSecurityApp;
import org.shan.spring.cache.annotation.EnableJ2Cache;
import org.shan.spring.druid.EnableDruid;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

/**
 * Created by amanda.shan on 2020/5/18.
 */
@SpringBootApplication(scanBasePackages = {"org.shan", "com.herui"})
@EnableJ2Cache
@EnableScheduling
@MapperScan(basePackages = {"com.herui.ota.dao.mysql"})
@EnableSecurityApp
@EnableWebSecurity(debug = false)
@EnableDruid
public class OTAApplication {

    public static void main(String[] args) {
//        SpringApplication.run(OTAApplication.class, args);

        SpringApplication app = new SpringApplication(OTAApplication.class);
//        app.setWebApplicationType(WebApplicationType.NONE); // 设置非Web环境
        app.run(args);
    }


}
